import Vue from 'vue'
// import topBar from './topBar.vue'
// Vue.component(topBar.name,topBar)
const requireComponent = require.context('./',false,/\.vue$/)
console.log(requireComponent.keys())
requireComponent.keys().forEach(key=>{
  let obj = requireComponent(key).default
  Vue.component(obj.name,obj)
})